#ifndef TEST_FUNCTION_TEMPLATE_TEST_H
#define TEST_FUNCTION_TEMPLATE_TEST_H
#include "Messi.h"

namespace elloop_test {

    template<typename T>
    inline int compare(const T & v1, const T & v2);

    class FunctionTemplateTest : public Messi {
    public:
        FunctionTemplateTest* run() override;
        void testCompare();
    };
}

template<typename T>
int elloop_test::compare(const T & v1, const T & v2)
{
    if (v1 < v2) {
        return -1;
    }
    else if (v2 < v1) {
        return 1;
    }
    else {
        return 0;
    }
}

#endif